<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<tiles:insert page="/general/templateLoggedIn.jsp">
	<tiles:put name="title" value="User Administration"/>
	<tiles:put name="nav"/>
	<tiles:put name="content" type="string">
		<h2>New User</h2>
			
		<html:form action="/admin/userAdmin/createUser" focus="mail">			
			<table>
				<tr>
					<td>Mail:</td>
					<td><html:text property="mail" /></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><html:password property="password" /></td>
				</tr>
				<tr>
					<td>Confirm Password:</td>
					<td><html:password property="password2" /></td>
				</tr>
				<tr>
					<td>Role:</td>
					<td>
						<html:select property="role">
							<html:option value="applicant">Applicant</html:option>
							<html:option value="chair">Chair</html:option>
							<html:option value="admin">Admin</html:option>
						</html:select>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right"><html:submit><bean:message key="registration.submit" /></html:submit></td></tr>
			</table>
		</html:form>
		
	</tiles:put>
</tiles:insert>